<!--
 * @Author: boyyang
 * @Date: 2022-01-11 11:03:49
 * @LastEditTime: 2022-02-09 17:58:59
 * @LastEditors: boyyang
 * @Description: 
 * @FilePath: \boyyang\src\views\imagesUpload\index.vue
-->

<template>
    <div>
        <file-upload file-type="image/*" @on-change="uploadChange"></file-upload>
    </div>
</template>

<script lang="ts" setup>
import { upload } from '@/cloudbase'

// TODO: 修改为可以多个文件上传
const uploadChange = (e: any) => {
    upload(e.file).then((res) => {
        console.log(res)
    }).catch((err) => {
        console.log(err)
    })

}
</script>

<style scoped>
</style>